package src.main.java.mapper;


import org.apache.ibatis.annotations.Mapper;
import vo.common.dto.product.CategoryBrandDto;
import vo.common.entity.product.Brand;
import vo.common.entity.product.CategoryBrand;

import java.util.List;

@Mapper
public interface CategoryBrandMapper {

    List<CategoryBrand> findByPage(CategoryBrandDto CategoryBrandDto);

    void save(CategoryBrand categoryBrand);

    void updateById(CategoryBrand categoryBrand);

    void deleteById(Long id);

    List<Brand> findBrandByCategoryId(Long categoryId);

}